package org.cboard.security.utils;

/**
 * Created by james_duan on 2017/2/16.
 */
public enum ErrorCodeEnum {

    SERVER_ERROR("9999", "服务器异常"),
    SUCCESSFUL("0", "成功"),
    USER_NOT_EXIST_OR_PASSWORD_ERROR("1", "用户不存在或者密码错误");

    private String code;
    private String message;

    ErrorCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
